package com.atguigu.springcloud.Service.impl;

import com.atguigu.springcloud.Service.PaymentService;
import com.atguigu.springcloud.dao.PaymetDao;
import com.atguigu.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymetDao paymetDao;
    @Override
    public int create(Payment payment) {
        return paymetDao.create(payment);
    }

    @Override
    public Payment getPaymentById(int id) {
        return paymetDao.getPaymentById(id);
    }
}
